﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Maltose.MicroService
{

    /// <summary>
    /// 解析业务级别信息
    /// </summary>
    public class MicroServiceResultBase
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; } = 0;

        /// <summary>
        /// 错误信息 或者正确信息
        /// </summary>
        public string Msg { get; set; } = string.Empty;
    }


    /// <summary>
    /// 解析业务级别信息 不会带有 data
    /// </summary>
    public class MicroServiceBusResult : MicroServiceResultBase
    {

    }

    /// <summary>
    /// 解析返回数据信息data
    /// </summary>
    public class MicroServiceDataResult<T> : MicroServiceResultBase 
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }

}
